<!DOCTYPE html>
<!--导入模板标签-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <table border="1px" align="center" width="500px">
        <tr align="center" >
            <td colspan="4"><h3>用户列表</h3></td>
        </tr>
        <tr>
            <td>ID</td>
            <td>姓名</td>
            <td>年龄</td>
            <td>性别</td>
        </tr>
        <tr th:each="user:${userList}">
            <td th:text="${user.id}"></td>
            <td th:text="${user.name}"></td>
            <td th:text="${user.age}"></td>
            <td th:text="${user.sex}"></td>

        </tr>
    </table>


</body>



</html>